<html>
<head><meta charset="utf-8"><title>Re. compiler-docs: Missing trait impls for type #76736 · rustdoc · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/index.html">rustdoc</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Re.2E.20compiler-docs.3A.20Missing.20trait.20impls.20for.20type.20.2376736.html">Re. compiler-docs: Missing trait impls for type #76736</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="221769988"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Re.%20compiler-docs%3A%20Missing%20trait%20impls%20for%20type%20%2376736/near/221769988" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Re.2E.20compiler-docs.3A.20Missing.20trait.20impls.20for.20type.20.2376736.html#221769988">(Jan 06 2021 at 14:04)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="246502">@jakevossen5</span> as you're interested in fixing this.<br>
So we can commute in public here.</p>



<a name="221770791"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Re.%20compiler-docs%3A%20Missing%20trait%20impls%20for%20type%20%2376736/near/221770791" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Re.2E.20compiler-docs.3A.20Missing.20trait.20impls.20for.20type.20.2376736.html#221770791">(Jan 06 2021 at 14:12)</a>:</h4>
<p>So, when building std with rustdoc, we ignore unstable implementation with rustc_private feature.<br>
But when documenting compiler-docs, we want to ignore that checks.<br>
How could we let rustdoc know it is documenting compiler internals?<br>
Compiler crates are passed <code>-Zforce-unstable-if-unmarked</code> flag when compiling.<br>
We could leverage this point.</p>



<a name="221770897"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Re.%20compiler-docs%3A%20Missing%20trait%20impls%20for%20type%20%2376736/near/221770897" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Re.2E.20compiler-docs.3A.20Missing.20trait.20impls.20for.20type.20.2376736.html#221770897">(Jan 06 2021 at 14:13)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="232545">@Joshua Nelson</span> also if he want to add something.</p>



<a name="221772783"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/266220-rustdoc/topic/Re.%20compiler-docs%3A%20Missing%20trait%20impls%20for%20type%20%2376736/near/221772783" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/266220-rustdoc/topic/Re.2E.20compiler-docs.3A.20Missing.20trait.20impls.20for.20type.20.2376736.html#221772783">(Jan 06 2021 at 14:30)</a>:</h4>
<p>That seems ok as a workaround.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>